//导入requset工具
import request from '@/utils/request'
//获取主页显示的数据
export const getAllTrendDataService = () => {
  return request.get('/admin/home/trend')
}


// 获取考勤统计数据
export const getAttendanceStats = () => {
  return request.get('/admin/attendance/page')
}
// 获取部门人员分布
export const getDepartmentStats = () => {
  return request({
    url: '/statistics/department',
    method: 'get',
    response: () => ({
      code: 0,
      data: [
        { department: '研发部', count: 45 },
        { department: '运维部', count: 28 },
        { department: '销售部', count: 32 },
        { department: '行政部', count: 18 }
      ]
    })
  })
}
export default [
  {
    url: '/statistics/attendance',
    method: 'get',
    response: () => ({
      code: 0,
      data: {
        months: ['2023-04', '2023-06', '2023-08', '2023-10', '2023-12', '2024-02'],
        values: [12, 8, 15, 10, 7, 5]
      }
    })
  },
]

